import Admin from './components/admin/admin.vue';
import Adminselect from './components/admin/adminSelect.vue';
import Home from './components/admin/home.vue';
import Blogs_tree from './components/blogs/blogsTree.vue'
import Blogs_upload from './components/blogs/blogsuploading.vue'
import Blogs_comment from './components/blogs/comment/blogscomment.vue'
import Images from './components/file/images.vue'

import Text from './text.vue'
//专属测试文件及路由

//引入的各个页面组件

const routers = [
    {
      path:'/text',
      component:Text,
    },
   {
    path: '/',
    component:Home,
  },
  {
    path: '/admin',
    component:Home,
    // children: [//添加子路由
    //   {
    //     path: '/adminselect',
    //     component:Adminselect
    //   },
    //   {
    //     path: '/blogs',
    //     component:Blogs_tree
    //   },
    //   {
    //     path: '/blogsupload',
    //     component:Blogs_upload
    //   }

    // ]
  },
  {
    path: '/adminselect',
    component:Adminselect
  },
  {
    path: '/blogs',
    name:'blogs',
    component:Blogs_tree
  },
  {
    path: '/blogsupload',
    name:'blogsupload',
    component:Blogs_upload
  },
  {
    path: '/blogscomment',
    name:'blogscomment',
    component:Blogs_comment
  },
  {
    path: '/file',
    name:'Images',
    component:Images
  },
  {//重定向
    path: '*',
    component: Home
  }
]
export default routers
